<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
    <style>
        * {
            box-sizing: border-box;
            font-family: 微软雅黑;
        }
        html,body {
            height: 100%;
        }
        body {
            margin: 0;
            background-color: #ddd;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .login {
            background-color: #fff;
            width: 340px;
            padding-top: 30px;
            border-radius: 5px;
        }
        .login img {
            display: block;
            width: 150px;
            margin: 0 auto;
        }
        p {
            text-align: center;
            margin: 10px 0;
            color: #888;
            padding-bottom: 5px;
        }
        form {
            padding: 0 30px 20px 30px;
        }
        input {
            height: 40px;
            width: 100%;
            margin: 5px 0;
            outline: none;
            border: 1px solid #aaa;
            padding-left: 10px;
            font-size: 14px;
        }
        input:focus {
            border: 1px solid #d70f18;
        }
        input[type=submit] {
            width: 100%;
            height: 40px;
            line-height: 40px;
            font-size: 16px;
            background-color: #d70f18;
            border: none;
            color: #fff;
            padding: 0;
            margin: 5px 0;
            cursor: pointer;
        }
        .error-message {
            color: #d70f18;
            margin: 3px 0;
        }
    </style>
</head>
<body>
<div class="login">
    <p>员工信息系统</p>
    <form action="${pageContext.request.contextPath}/user/login" method="post">
        <div>
            <input type="text" id="user_name" name="user_name" value="" placeholder="请输入用户名">
        </div>
        <div>
            <input type="password" id="user_psw" name="user_psw" value="" placeholder="请输入密码">
        </div>
        <div>
            <p class="error-message">${error}</p>
            <input type="submit" value="登录">
        </div>
    </form>
</div>
</body>

<script>
    /*课下利用js实现前端的校验*/

</script>

</html>
